package com.example.bbs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.beans.Transient;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author jiajiazi
 * @version 1.0
 * @date 2021/5/5 18:49
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class Article implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer userid;

    @TableField(exist = false)
    private String username;

    @TableField(exist = false)
    private Integer usertype;

    private Integer diseaseid;

    @TableField(exist = false)
    private String diseasename;

    private String titile;

    private String img;

    private String description;

    private String content;

    private Integer view;

    private Integer support;

    private Integer visable;

    private LocalDate date;


}
